#ifndef OPENGLDEVICE_H
#define OPENGLDEVICE_H

#include "OpenGLEngine.h"

class OpenGLDevice : public GraphicsDevice
{
	public:
		OpenGLDevice (void);
		~OpenGLDevice (void);

		BOOL Init (HINSTANCE hInst, LPCWSTR WinTitle, UINT ScrnWidth,
				   UINT ScrnHeight, UINT ClrDepth, BOOL Fullscreen);
		void BeginRendering (void);
		void EndRendering (void);
		void Clear (void);
		void SetClearColor (int Red, int Green, int Blue, int Alpha);

		void* GetDrawDevice (void);

	private:
		void InitOpenGL (void);
		void ResizeGLScene (void);
		void CleanOpenGL (void);

		HGLRC hRC;
		HDC hDC;
};

#endif